CHKDSK: What Is It and How Do I Run It?

It’s a tool for disk maintenance and repair.

CHKDSK, short for Check Disk, is a utility that checks the integrity of the files and file structure of your hard disk. I'll walk you through it.
The Best of Ask Leo!
CHKDSK in progress
(Image: ChatGPT)
Question: I have disk problems and you said I should run CHKDSK. Great. What is that?

Fair enough. It’s easy for us computer geeks to take things for granted that we shouldn’t.

CHKDSK is a command-line tool that checks disks. I’ll talk about what the command line is as well as what it means to check a disk.

I’ll also show you how to run CHKDSK step by step.

TL;DR:

CHKDSK

CHKDSK checks your hard disk for problems and tries to fix them. You run it using Command Prompt. It can find missing info, fix file errors, and even look for bad spots on the disk. It’s useful if you suspect disk-related issues.

Checking a disk

Files on a disk live in folders; folders can live in other folders; and everything lives in your disk, which might be a partition on or portion of a larger disk. On top of that, there may be security information about who is allowed to access what and in what ways they’re allowed to access it.

That’s pretty confusing. All you care about is getting what you expect when you access a file.

All that confusing stuff is information — data — stored on the disk keeping track of your files and folders. CHKDSK’s primary job is to make sure all the administrative information about the files, folders, permissions, and more is correct.

Normally, all of that information is correct. The system keeps it correct from startup to shutdown.

Unfortunately, a variety of errors can cause it to be incorrect. Things like not shutting down your computer properly, software issues, and hardware errors can cause problems and damage the administrative information on the disk.

CHKDSK’s job is to try to repair those errors.

Ask Leo! is Ad-Free!
Help keep it going by becoming a Patron.

What’s a command-line tool?

Most programs in Windows appear as or in a window.

Command-line tools do not. They don’t know about on-screen windows and don’t display their results in them. They rely on the Command Prompt, which is nothing more than a non-windowed environment that mimics the days before Windows, when all programs were command-line tools under MS-DOS.

So to run CHKDSK, we start with a Command Prompt.

Running CHKDSK

You’ll find either Command Prompt, Power Shell, or Terminal in your Start menu. Any of the three will do.

Right-click the Start menu, and it should be listed. You’ll want the “(Admin)” version so it runs with full administrative privileges.

Terminal (Admin) in Start
Terminal (Admin) in the Start menu. (Screenshot: askleo.com)

After a UAC prompt (since we’re running “as” administrator), a new window opens that looks something like this.

Command Prompt (Admin_
A Command Prompt window. Click for larger image. (Screenshot: askleo.com)

Command-line tools are run by typing the command (you may need to click on the Command Prompt window first to ensure it gets your keystrokes) and pressing the Return or Enter key. Any output the tool generates shows up in the window below what you’ve typed.

Running CHKDSK

Try it now: after opening a Command Prompt window and/or clicking it to make it active, type CHKDSK followed by the Enter key.

You may see something like this.

Access Denied as you do not have sufficient privileges.
You have to invoke this utility running in elevated mode.

That means you haven’t run Windows Command Prompt as administrator. Close the Command Prompt (either by clicking the “x” in the upper-right of the Window or typing “exit” followed by the Enter key), and start it again, this time being sure to select the “(Admin)” version listed (see image above).

Without any parameters (I’ll describe a few in a moment), CHKDSK does nothing more than check the disk. It won’t try to fix anything; it’ll simply report any problems it finds.

A run of CHKDSK.
A run of CHKDSK. Click for larger image. (Screenshot: askleo.com)

“Windows has scanned the file system and found no problems” is good news.

CHKDSK parameters

By default, CHKDSK operates on the “current” disk, which in almost all cases is C:. (If you run into problems, see the next section below.)

To have CHKDSK check a different drive, simply follow the CHKDSK command with a space and then the drive designator.

CHKDSK D:

This directs CHKDSK to check your D: drive.

To have CHKDSK fix any problems it finds, include the “/F” (Fix) parameter.

CHKDSK D: /F

This command checks the D: drive and, if any errors are found, CHKDSK attempts to repair them. The results are relayed to you via on-screen output.

The next most common way we use CHKDSK is to check for bad physical sectors using the “/R” (Repair) option.

CHKDSK D: /R

When running /R, CHKDSK checks the entire disk surface for bad sectors and attempts to repair or work around any it finds if it can. Running /R accomplishes /F as well.

The special case of C:

C: is special. CHKDSK can’t repair drives that are in use, and if Windows is running, C: is in use. If you try to run CHKDSK /F on drive C:, you’re likely to see this.

CHKDSK /F on C:
CHKDSK /F reporting that it can’t work on drive C:. (Screenshot: askleo.com)

Answer Y followed by Enter and then reboot your system. CHKDSK will run before Windows starts so it can repair the drive before Windows starts using it.

Do this

Run CHKDSK if you suspect disk-related issues. The most common ways to use CHKDSK are:

  • CHKDSK /F to check and fix the current drive (a reboot might be required)
  • CHKDSK D: /F to check and fix a specific drive (in this case, D:)
  • CHKDSK D: /R to check, fix, and look for bad sectors on a specific drive (in this case, D:)

You can also run CHKDSK /? to get a list of additional options.

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

Podcast audio

Play

36 comments on “CHKDSK: What Is It and How Do I Run It?”

  1. Hi also,

    I ran a cmd prompt.

    Typed: chkdsk e: /f /r
    (e:) is my external HD

    The message I got was:
    Corruption is due to bad sectors was found while examining files in directory \soft\.

    Entries 0 to 4095 were affected.
    The bad sector will only be repaired if the “/r” option is specified.

    I don’t know what to do from here.

    Please help

    Reply
  2. Hi,
    I have a laptop that is going through CHKDSK on startup, reporting many errors but has not finished before the laptop crashed to BSOD. Can I mount the C: drive on my other PC, assign a drive letter and let CHKDSK do what it needs to there and then return it to my laptop?

    Reply
  3. Thanks for a great article! It was a long time ago I had to use Windows computers so this guide helped me fix my daughters old crappy Windows laptop 🙂

    Reply
  4. I have been a follower of your advice for 10+ years. Once again your information solved a problem. My Macrium Reflect log showed bad sectors in 2 clusters. Your chkdsk article gave clear instructions and Macrium was able to make a successful backup overnight. Thank you very much.

    Reply
  5. Leo –

    Hi. In Windows 7, when I access Error Checking via the GUI (and not Command Prompt), there is a Check Disk Options box that allows me to choose whether I want the utility to (1) automatically fix file system errors and (2) scan for and attempt recovery of bad sectors. However, in Windows 10, when I access Error Checking via the GUI, there is no such Check Disk Options box.

    My questions are:
    1. In Windows 10, when I run Error Checking via the GUI, will it automatically fix/repair any error it finds?
    2. If the answer to question #1 is yes, what type of fix/repair is it: /F or /R?

    Thanks.

    Reply
  6. Hi i’m running CHKDSK /R and it is saying “a disk read error occuredc0000483”
    the disk does not have enough space to replace bad clusters detected in file 1DF of name ……

    does this mean i’m wasting my time or should i let the program run it’s course
    thankyou for your time

    Reply
  7. I have been a tech support person for over 40 years and I just got a message from chkdsk /f that I have never seen before and don’t know what to do about it!
    The program says: examining file name linkage and reports 2 errors like: An unspecified error occurred (696e5478689b2e 532).
    A google search provided no assistance.

    Reply
  8. How can I run check disk on a flash drive that is encrypted with VeraCrypt? Initially, I tried to run check disk (via the GUI in Windows 10) without decrypting the flash drive. What I got was an error message that said: “The disk check could not be performed because the disk is not formatted. Would you like to format the disk?” Of course, I selected No.

    So, I decrypted the flash drive, and then tried to run check disk again. What I got was another error message: “Windows can’t check the disk while it is in use. Do you want to dismount the volume first?” If I said Yes, I would end up with an encrypted flash drive again with the same error message about an unformatted disk.

    How can I run check disk on this flash drive?

    Thanks.

    Reply
    • I’m going to assume this is whole-disk encryption. That means you cannot CHKDSK the un-mounted drive. But if you have it mounted, then in theory you should be able to CHKDSK the mounted drive. Again, there are several possible scenarios but if the physical drive is D:, and when you mount it E: becomes available, you can CHKDSK E:.

      Reply
      • When I plug in my whole-disk encrypted flash drive, it usually shows up as drive F. Then as I proceed to decrypt the flash drive using VeraCrypt, I pick an available drive letter to mount the drive, which is usually P. (I hope I am correctly using the term “mount”.) Then after the drive is decrypted, I try to run check disk on drive P. But I can’t. All I get is the error message I mentioned earlier: “Windows can’t check the disk while it is in use…” For some reason, I am unable to check disk the mounted drive.

        Reply
        • It turns out I was able to run check disk on my encrypted flash drive by simply taking the process one step further. After again getting the error message, “Windows can’t check the disk while it is in use,” this time I answered the next question, “Do you want to dismount this volume first?” by selecting “Yes, force a dismount.” This allowed check disk to run. I had erroneously thought dismounting the volume would surely prevent check disk from running.

          Reply
  9. My geezer brain (once trained on the nuanced differences between “PC” DOS and “MS” DOS) still equates “hard drive” with spinning hardware, but not SSDs. I guess CHKDSK is also for the latter…(?)

    Reply
  10. Hello Leo
    It has been a long time since I last used CHKDSK/R, I still have this written on my PC Desk. My new ‘Gaming PC’ however is Solid State, built for me by a young technical minded family member.
    My point is if my PC is Solid State, what is being scanned when I turn my Advance Care System to scan disc.
    Thank you
    Paul

    Reply
  11. A couple of days ago I booted my EaseUS Todo Backup Free recovery drive to run a full system backup of my laptop’s internal 512GB SSD. It said it found errors on my C:\ partition, and asked if I wanted to do a sector-by-sector backup. I did so, but now the thought of running chkdsk C: /f makes me nervous. What if it can’t repair all the errors? Will I get stuck in a cycle of failed chkdsk sessions on every reboot, or worse? My philosophy on such things is if it ain’t broke, don’t fix it. But the way my Windows system is running now, I wouldn’t know anything was broken if not for the backup.

    My SSD is healthy, with 88% estimated remaining life. I think the errors are most likely minor corruptions in the file system caused by several system crashes. Chances are chkdsk will be able to fix them all. But still, I really don’t want to deal with the consequences of any glitches, either from chkdsk or the major Windows upgrade I’m planning. The last thing I want is to need to run a full sector-by-sector restore on my SSD. Am I being overly paranoid here?

    Reply
    • Chkdsk will check the disk and if it finds errors and notify you of errors it finds. Chkdsk doesn’t enter into a loop it stops after running.
      If a file is already corrupted or its metadata is inconsistent, CHKDSK may remove invalid entries from the file system and move orphaned clusters into FOUND.000 folders as .CHK files. This isn’t corruption caused by chkdsk. It’s recovery of data that was already in an unusable state.
      Can CHKDSK Corrupt Files?

      Reply
      • Chkdsk itself doesn’t enter into a loop. If it fails, it might not reset the dirty bit, resulting in it running and failing with each reboot. That’s the kind of loop I’m concerned about.

        I suppose I should grow a spine and run it. Since my Windows system is still running well, a serious failure is probably extremely unlikely.

        Reply
      • First, though, I decided to run chkdsk alone with no parameters just to see what I was dealing with. This is what it said at the end:

        The Volume Bitmap is incorrect.
        Windows has checked the file system and found problems.
        Please run chkdsk /scan to find the problems and queue them for repair.

        There were no indications of other problems that I could see in the output. Could this have been caused by system crashes? Does Leo have any articles about this issue?

        Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.